<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link href="<?= STATICURL; ?>h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css"/>
    <link href="<?= STATICURL; ?>h-ui.admin/css/H-ui.login.css" rel="stylesheet" type="text/css"/>
    <link href="<?= STATICURL; ?>lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css"/>
    <link href="<?= STATICURL; ?>luckydog/css/style.css" rel="stylesheet" type="text/css"/>
    <title>后台登录 - 蓝调</title>
</head>
<style>
    .input-text {
        border-radius: 6px;
        border: 1px solid #3d3d3d;
        background: rgba(45, 45, 45, .15);
        border: 1px solid rgba(255, 255, 255, .15);
    }
    .btn.size-L {
        padding: 8px 32px;
    }
</style>
<body>

<div class="blurred">
    <div id="loginform" class="loginBox">
        <form class="form form-horizontal" method="post">
            <div class="row cl">
                <div class="col-md-3 col-md-offset-3">
                    Login
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i></label>
                <div class="formControls col-xs-8">
                    <input id="username" type="text" placeholder="用户名" class="input-text size-L">
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60e;</i></label>
                <div class="formControls col-xs-8">
                    <input id="password" type="password" placeholder="密码" class="input-text size-L">
                </div>
            </div>
            <div class="row cl">
                <div class="formControls col-xs-8 col-xs-offset-3">
                    <input name="" id="J_login" class="btn btn-success radius size-L" value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;">
                </div>
            </div>
        </form>
    </div>
</div>
<div id="particles"></div>
<script type="text/javascript" src="<?= STATICURL; ?>lib/jquery/1.9.1/jquery.min.js"></script>
<script type='text/javascript' src='<?= STATICURL; ?>luckydog/js/jquery.particleground.js'></script>
<script type='text/javascript' src='<?= STATICURL; ?>luckydog/js/demo.js'></script>
</body>
<script>
    $("#J_login").click(function () {
        var username = $("#username").val();
        var password = $("#password").val();
        if (username == '' || username == "请输入用户名/邮箱") {
            alert("用户名/邮箱不能为空");
            $("#username").focus();
            return false;
        }
        if (password == '' || password == "●●●●●●") {
            alert("密码不能为空");
            $("#password").focus();
            return false;
        }
        $.post("/login/login_manager", {"username": username, "password": password}, function (data) {
            if (data.code == 0) {
                window.location.href = "<?=BASEURL?>/" + data.page;
            } else {
                alert(data.message);
                window.location.reload();
            }
        }, "json");
    });
</script>
</html>

